package user;

import book.BookList;
import ioperation.*;

public abstract class User{
    protected String name;
    public  IOperation[] iOperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doIOpreation(BookList bookList,int choice){
        iOperations[choice].work(bookList,choice);
    }
}
